ArcDir
The command command is used for calling one of Opus' commands that is
in the internal command list, whether they be an 'original' or a 'replaced'
version.
Since internal commands act primarily between a SOURCE lister and a
DESTINATION lister, this is the way the command command works since it is
only calling internal commands. If there aren't any, then the command is
ignored. You can tell the command to act specifically on a SOURCE and
DESTINATION lister by specifying their handles in the command line, like
so:
command source dest .......
In the following example, we will only use one SOURCE lister, to ensure
this all other listers will be closed, then a new one opened and locked
as SOURCE.
Example:
/* Command.dopus5 */
options results
address 'DOPUS.1'
lister close all
lister new mode name "DOpus5:Icons"
handle = result
lister set handle source lock
call setclip('Lister.test',handle)
exit
WARNING: The following buttons allow you to select files/dirs,
if you then use the last button, those files will be DELETED!!!
I have used the DOpus5:Icons directory as an example because it
generally contains non-critical files that you can re-install
from the distribution disks.
Please use the commands in the order they are shown, OR make
certain before you push the last one that the path in the lister
is the correct one!!!!!!
Run the example above, then click on the buttons below to see what happens.
In the first two command buttons below, we've added the parameter wait.
This is just telling Opus to wait until that command has been executed,
normally the commands will be done asynchronously, that is, it doesn't wait
to see the result.
command wait all
command wait none
command flash
command beep
Supposing you have replaced the internal Copy command with an enhanced
version, (See Example 12: Improving the internal commands ), to ensure
his script runs the same on everybody's setup, the writer could use the
original parameter to tell Opus to use the original Copy command, not
your enhanced version.
command original copy DOpus5:Icons TO RAM:
command ScanDir RAM:Icons
command select name Opus.info
command play
command select name Group.info
command read
command doubleclick Settings.info
command parent
command select name Icons
Check your path before using!!!!!
command delete
Click on this button to close the lister.
|